package com.wzy.designpattern.behavioral.stategy;

/**
 * 描述
 * 创建人    Wzy
 * 创建时间: 2020-05-16  18:59
 */
public class PromotionActivity {
    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    public void executePromotionStrategy() {
        promotionStrategy.doPromotion();
    }
}
